def my_y(name, i):
    while True:
        print('name')
        x = yield i
        print(x)
        i += 1


if __name__ == '__main__':
    a = my_y('name', 1)
    print(next(a))
    print(a.send(-1))
